//index.js
//获取应用实例
var app = getApp()
Page( {
 
  //事件处理函数
  bindViewTap: function() {
    wx.navigateTo( {
      url: '../logs/logs'
    })
  },
  calling: function () {
    wx.makePhoneCall({
      phoneNumber: '18888888888',
      success: function () {
        console.log("拨打电话成功！")
      },
      fail: function () {
        console.log("拨打电话失败！")
      }
    })
  },
  click: function (e) {
    wx.openLocation({
      latitude: 22.793340,
      longitude: 114.479970,
      scale: 18,
      name: '惠州市惠阳源记汽车音响改装中心',
      address: '惠州市惠阳区谈水大埔卢屋山桥头'
    })
  },  
})